package com.test.pay.pojo;

import com.test.pay.util.Constants;

import java.util.Date;

public class Order {
    private Integer id;
    private Integer userId;
    private String orderNum;
    private String tradeNum;
    private Integer amount;
    private Date createDate;
    private Integer status;
    private String result;
    private Date resultDate;
    private String otherInfo;

    public Order() {
    }

    public Order(Integer userId, String orderNum, Integer amount, String otherInfo) {
        this.userId = userId;
        this.orderNum = orderNum;
        this.amount = amount;
        this.otherInfo = otherInfo;
        this.status = Constants.ORDER_STATUS_CREATE;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getTradeNum() {
        return tradeNum;
    }

    public void setTradeNum(String tradeNum) {
        this.tradeNum = tradeNum;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Date getResultDate() {
        return resultDate;
    }

    public void setResultDate(Date resultDate) {
        this.resultDate = resultDate;
    }

    public String getOtherInfo() {
        return otherInfo;
    }

    public void setOtherInfo(String otherInfo) {
        this.otherInfo = otherInfo;
    }
}
